package org.example.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author laoma
 * @create 2021-06-06 13:54
 */
@ExcelTarget("users")
@Data
@Accessors(chain = true)
public class User implements Serializable {

    @Excel(name = "编号")
    private String id;
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "年龄")
    private Integer age;
    @Excel(name = "生日",width = 35.0,format = "yyyy-MM-dd")
    private Date bir;
}
